package com.zut.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zut.pojo.Teacher;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author teacher
 * @since 2021-05-31
 */
public interface TeacherService extends IService<Teacher> {
    //按性别查询老师
    List<Teacher> selectTeacherSex(String sex);
    //按教龄查询老师
    List<Teacher> selectTeacherYear(Integer begin,Integer end);
    //按是否获奖查询老师
    List<Teacher> selectTeacherIsAcmer(Integer flag);
    //按名字精确查找
    List<Teacher> selectTeacherName(String tea_name);
    //按id查找老师
    Teacher selectTeacherById(Integer teaid);
    //添加老师
    boolean addTeacher(Teacher teacher);
    //删除老师
    int deleteTeacher(Integer teaid);
    //修改老师信息
    boolean updateTeacher(Teacher teacher);
    //展示全部老师信息
    List<Teacher> selectAllTeacher();

    //管理员模糊查询
    public List<Teacher> seatea(String msg);
}
